package com.jmp.base;

import com.jmp.base.dto.*;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author cjr
 */
public interface AddressApi {

    /**
     * 获取默认地址
     */
    @PostMapping("/address/default")
    ResultModel<AddressDefaultVo> default1(@RequestBody AddressDefaultDto request);

    /**
     * 列表
     */
    @PostMapping("/address/list")
    ResultModel<AddressListVo> list(@RequestBody AddressListDto request);

    /**
     * 保存地址
     */
    @PostMapping("/address/save")
    ResultModel save(@RequestBody AddressSaveDto request);

    /**
     * 删除
     */
    @PostMapping("/address/remove")
    ResultModel remove(@RequestBody AddressRemoveDto request);

    /**
     * 设置默认
     */
    @PostMapping("/address/default/set")
    ResultModel defaultSet(@RequestBody AddressDefaultSetDto request);
}
